/*
 * File:   -pines.c
 * Author: Usuario
 *
 * Created on 23 de agosto de 2014, 09:35 AM
 */

#include <p18f4550.h>
#include <plib/delays.h>

int main(void){

    TRISB=0;
    TRISD=0;
    unsigned char mens[6][8]={{0X0,0X3C,0X42,0X42,0X42,0X42,0X7E,0X0},{0X0,0X10,0X38,0X54,0X10,0X10,0X10,0x0},
    {0X0,0X76,0X4A,0X4A,0X52,0X42,0X3C,0X0},{0X0,0X10,0X38,0X54,0X10,0X10,0X10,0x0},{0X0,0X7E,0X4A,0X4A,0X4A,0X4A,0X7E,0X0},{0X0,0X10,0X38,0X54,0X10,0X10,0X10,0x0}};
    unsigned char  colu=0, lette=0;
    while(1){
        {for(lette=0;lette<6;lette++)
        {

            for(colu=0;colu<7;colu++){
                PORTD=mens[lette][colu];
                PORTB=~(1<<colu);
                Delay1KTCYx(50);
            }
            Delay1KTCYx(200);
            }}





  }



}
